using SubSonic.DataProviders;
using SubSonic.Repository;

namespace SPConf.Models.Repository
{
  public class SimpleRepositoryFactory
  {
    public static SimpleRepository Create()
    {
      IDataProvider dataProvider = ProviderFactory.GetProvider("ApplicationServices");
      return new SimpleRepository(dataProvider, SimpleRepositoryOptions.RunMigrations);
    }
  }
}